package it.lorenz.server.fk.business.jr;

import it.lorenz.server.fk.business.AbstractDTO;
import java.util.HashMap;
import java.util.Map;
import net.sf.jasperreports.engine.JRDataSource;
import net.sf.jasperreports.engine.JasperPrint;
import net.sf.jasperreports.engine.JasperReport;

public class JasperReportsDTO extends AbstractDTO {

    private static final long serialVersionUID = 8086083348307355143L;
    private String templatePath;
    private Map<String, Object> attributes;
    private JRDataSource dataSource;
    private byte[] pdfBytes;

    public JasperReportsDTO(String templatePath) {
        super();
        this.templatePath = templatePath;
        this.attributes = new HashMap<String, Object>();
    }

    public String getTemplatePath() {
        return templatePath;
    }

    public void setTemplatePath(String templatePath) {
        this.templatePath = templatePath;
    }

    public Map<String, Object> getAttributes() {
        return attributes;
    }

    public void setAttributes(Map<String, Object> attributes) {
        this.attributes = attributes;
    }

    public JRDataSource getDataSource() {
        return dataSource;
    }

    public void setDataSource(JRDataSource dataSource) {
        this.dataSource = dataSource;
    }

    public byte[] getPdfBytes() {
        return pdfBytes;
    }

    public void setPdfBytes(byte[] pdfBytes) {
        this.pdfBytes = pdfBytes;
    }
}
